#pragma once

#include "ofMain.h"
#include "Item.h"
#include "SOIL.h"

#include <map>

using namespace std;

enum BLOCKCRAFT_DISPLAY_LISTS {
    SQUARE1X1 = 0,
    TERRAINBEGIN = 1000
};

class Resources
{
    Resources(void);
    static Resources *instance;

    map<int, GLint> textures;
    map<int, GLint> lists;
public:
    static Resources* get();
    static void release();

    GLint listByID(int ID);
    GLint textureByID(int ID);
    GLint list(int listID);
    GLint terrainListByID(int ID);
    GLint backgroundTexture();
};
